document.getElementById("save").onclick=function(){
	var data={}
	data.password=$("#password").val()
	data.new_password=$("#password1").val()
	if (/^ *$/.test(data.password)){
		showErrorInfo("密码不能为空!")
		return false;
	}
	if (/^ *$/.test(data.new_password)){
		showErrorInfo("密码不能为空!")
		return false;
	}
	if(data.new_password!==$("#password2").val()){
		showErrorInfo("密码不一致!")
		return false;
	}
	data=JSON.stringify(data)
	$.ajax({
		"url":"/reset_password/",
		"data":{"data":data},
		"error":errorAjax,
		"complete":stop_load_pic,
		"beforeSend":start_load_pic,
		"type":"POST",
		"success":function(data){
			if(responseCheck(data)){
				alert("修改成功！")
				window.close()
			}
		}
	})
}
